package sixkey.controller;

import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import sixkey.domain.entity.Content;
import sixkey.utils.ItScriptWorkerUtils;

import java.util.List;

/**
 * ClassName:ItScriptController
 * Package:sixkey.controller
 * Description
 *
 * @Author:@wenxueshi
 * @Create:2023/7/1 - 23:54
 * @Version:v1.0
 */
@RestController
@RequiredArgsConstructor
public class ItScriptController {
    private final ItScriptWorkerUtils itScriptWorkerUtils;

    @GetMapping("/script")
    public List<Content> testScripts(){
        return itScriptWorkerUtils.execute();
    }
}
